//
//  UIButton+NetworkImage.m
//  WoComCloud
//
//  Created by WC on 2020/5/10.
//  Copyright © 2021年 YH. All rights reserved.
//

#import "UIButton+NetworkImage.h"

@implementation UIButton (NetworkImage)

- (void)setImageWithUrl:(NSString *)url placeholderImg:(NSString *)placeholderImg
{
    [self sd_setImageWithURL:[NSURL URLWithString:url] forState:UIControlStateNormal placeholderImage:[UIImage imageNamed:placeholderImg]];
}

- (void)setImageWithUrl:(NSString *)url forState:(UIControlState)state placeholderImg:(NSString *)placeholderImg
{
    [self sd_setImageWithURL:[NSURL URLWithString:url] forState:state placeholderImage:[UIImage imageNamed:placeholderImg]];
}

@end

